home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12287 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: calcium.med.monash.edu.au!Ian.Musgrave
  2. From: Ian.Musgrave@med.monash.edu.au (Ian Musgrave)
  3. Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc
  4. Subject: Re: Help finding contents of current directory.
  5. Date: Tue, 19 Mar 1996 07:13:06 GMT
  6. Organization: PHIMR at Monash Medical Center
  7. Message-ID: <Ian.Musgrave.350.314E5E82@med.monash.edu.au>
  8. References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net>
  9. NNTP-Posting-Host: calcium.med.monash.edu.au
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  11.  
  12. G'Day All
  13. Dale Hollon <hollon@gate.net> writes:
  14. >From: Dale Hollon <hollon@gate.net>
  15. >Subject: Help finding contents of current directory.
  16. >Date: Fri, 15 Mar 1996 15:32:12 -0500
  17.  
  18. >I am trying to get a listing of the files in the current directory. I realize I will have to use 
  19. >stat to determin wether it is a file or a directory.  But how do I find out what's in the 
  20. >directory in the first place.
  21.  
  22. See my posting "Re:Req:How to get the current drive and directory" for a 
  23. method of finding subdirectories and files in a given directory (as well as 
  24. the current path).
  25.  
  26. Cheers! Ian
  27.  
  28. ---------------------------------------------
  29. Ian Musgrave Ph.D Ian.Musgrave@med.monash.edu.au 
  30. Prince Henry's Institue of Medical Research
  31. PO Box 5152, Clayton 3168, Australia.
  32. Phone +61 3 550 4286 FAX +61 3 550 6125
  33.